//
//  Text_Padding.swift
//  Demo_01
//
//  Created by apple on 2020/7/21.
//  Copyright © 2020 Joseph. All rights reserved.
//


import SwiftUI

// 复用padding特性，制作轮廓效果~
struct Text_Padding: View {
    var body: some View {
        VStack{
            Text("www.hdjc8.com")
            .background(Color.black)
            .foregroundColor(.white)
            .padding(20)

            Text("www.hdjc8.com")
            .padding()
            .background(Color.black)
            .foregroundColor(.white)

            Text("Swift User Interface")
            .font(.largeTitle)
            .foregroundColor(.black)
            .padding(15)
            .background(Color.yellow)
            .padding(15)
            .background(Color.orange)
            .padding(10)
            .background(Color.red)
        }
    }
}

struct Text_Padding_PreViews: PreviewProvider {
    static var previews: some View {
        Text_Padding()
    }
}
